package org.adorsys.aderp.orga.repository;

import java.util.List;

import org.adorsys.aderp.orga.domain.OrgaAddressRole;
import org.adorsys.aderp.orga.domain.OrgaPerson;
import org.adorsys.aderp.orga.domain.PersonAddress;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.roo.addon.layers.repository.jpa.RooJpaRepository;

@RooJpaRepository(domainType = PersonAddress.class)
public interface PersonAddressRepository {
	List<PersonAddress> findByOrgaPerson(OrgaPerson orgaPerson);
	Page<PersonAddress> findByOrgaPerson(OrgaPerson orgaPerson, Pageable pageable);
	Page<PersonAddress> findByOrgaPersonAndAddressRole(OrgaPerson orgaPerson, OrgaAddressRole addressRole, Pageable pageable);
	Page<PersonAddress> findByAddressRole(OrgaAddressRole addressRole, Pageable pageable);
}
